username='yyy'
password='pass'

for i in range(3):
  name = input(">>Input your name:")
  mypass = input(">>Input your password:")
  if name != username or mypass != password:
    print("Login or password error, try again!")
  else:
    print("login success!")  
    break


# 做得不错
